package com.dzl.cloud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author 光的代言人
 */
@Data
@TableName("users") // MyBatis-Plus注解
public class User {
    @TableId(type = IdType.ASSIGN_ID) // 使用ShardingSphere分布式ID
    private Long userId;
    private String username;
    private String password;
    private String email;
    private String phone;
    @TableField("gmt_create")
    private Date gmtCreate;
}
